onSyncClient

abstract fun onSyncClient(listener: OnSyncClientListener)

Registers a listener to the global onSyncClient event. This will be fired on the logical client when a config is synced.

This occurs when the player logs in or datapacks are reloaded.

This should only perform client logic.

Author

fzzyhmstrs

Since

0.5.0

Parameters

listener

OnSyncClientListener callback that is fired when any config is synced on the client side. This can be used to inspect other configs, not just your own.

See also

A direct-implementation option for inspecting your own config on sync.